﻿using System.Collections.Generic;
using ZenMoney.Core.Entities;

namespace ZenMoney.Core.Services
{	
	public interface ICommonService
	{
		IEnumerable<T> GetAll<T>(int page, int pageSize) where T : BaseEntity;

		T GetById<T>(int id) where T : BaseEntity;

		void Save<T>(T entity) where T : BaseEntity;

		void Delete<T>(T entity) where T : BaseEntity;
	}
}
